<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>数由组渲染表格</title>
	</head>
	<body>
		
		<table border="1">
			 <tr>
			 	<th>序列</th>
			 	<th>名字</th>
			 	<th>年龄</th>
			 	<th>Email</th>
			 </tr>
		</table>
		
		<script src = "../lib/jquery-3.1.1.js"></script>
		<script>
			
		"use strict";
			 $.get("data.json",function(ddd){ 
			 	/*var obj = ddd.list.data;		 	
			 	if(obj.success){
			 		bbb(obj.list.data);
			 	}*/
			 	console.log(ddd)
            }); 
//          var bbb = function(data){
//          	var newArr = [];
//          	$.each(data,function(index,obj){
//          		newArr.push(
//          			'<tr>',
//	            			'<td>',index + 1,'</td>',
//	            			'<td>',obj.name,'</td>',
//	            			'<td>',obj.age,'</td>',
//	            			'<td>',obj.email,'</td>',
//						'</tr>'
//          		)
//          	});
//          	
//          	$('table').append(newArr.join(''));
//          }
            /*var renderTable = function(respanse){
			 		var trArr = [];
			 		$.each(data,function(index,obj){
			 			trArr.push(
			 				'<tr>',
			 				'<td>',index+1,'</td>',
			 				'<td>',obj.name,'</td>',
			 				'<td>',obj.age,'</td>',
			 				'<td>',obj.age,'</td>',
		 				'</tr>'	
			 			)
			 		});
			 		console.log(trArr)
			 		
			 	}
  */
			
			
			
			
			
		
			
  
			
			
		</script>
	</body>
</html>
